package com.hsbc.dev.teamo4.sms.common.base;

import java.util.List;

/**
 * @author:Kevin
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.common.base
 * @Description: Entity Dao
 * @Date date: 2018/7/26
 */
public interface IEntityDao<T> {

    /**
     * save
     * @param t
     * @return T
     */
    T saveEntity(T t);

    /**
     * update
     * @param t
     * @return T
     */
    T updateEntity(T t);

    /**
     * updateByIsEnable
     * @param bool
     * @return
     */
    int updateByIsEnable(String id,Boolean bool);

    /**
     * query by Id
     * @param id
     * @return T
     */
    T queryById(String id);

    /**
     * query all
     * @return T
     */
    List<T> queryAllEntity();

}
